package com.swg.service;

import com.github.pagehelper.PageInfo;
import com.swg.common.ServerResponse;
import com.swg.vo.OrderVo;

import java.util.Map;

/**
 * @Author 【swg】.
 * @Date 2018/1/6 13:40
 * @DESC
 * @CONTACT 317758022@qq.com
 */
public interface OrderService {
    ServerResponse pay(Long orderNo, Integer userId, String path);
    ServerResponse aliCallback(Map<String,String> params);
    ServerResponse<Boolean> queryOrderPayStatus(Integer userId,Long orderNo);

    ServerResponse<OrderVo> createOrder(Integer userId, Integer shippingId);
    ServerResponse<String> cancel(Integer userId,Long orderNo);
    ServerResponse getOrderCartProdcut(Integer userId);
    ServerResponse<OrderVo> getOrderDetail(Integer userId,Long orderNo);
    ServerResponse<PageInfo> getOrderList(Integer userId, Integer pageNum, Integer pageSize);
    ServerResponse<PageInfo> manageList(int pageNum,int pageSize);
    ServerResponse<OrderVo> manageDetail(Long orderNo);
    ServerResponse<PageInfo> manageSearch(Long orderNo,int pageNum,int pageSize);
    ServerResponse<String> sendGoods(Long orderNo);
}
